package com.kefu.chat.vo;

import java.math.BigDecimal;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ThirdPartNodeVo {

    @ApiModelProperty(value = "主键")
    private String nodeId;

    @ApiModelProperty(value = "词条id")
    private String docId;

    @ApiModelProperty(value = "节点类型",notes = "1 文字列表，2内容展示，3页面嵌入,4常见问题,5接口调用")
    private Integer nodeType;

    @ApiModelProperty(value = "节点名称")
    private String nodeName;

    @ApiModelProperty(value = "节点内容")
    private String nodeContent;

    @ApiModelProperty(value = "绑定名称")
    private String bindName;

    private List<NodeItem> itemList;
    
    @Data
    @Builder
    public static class NodeItem{

        /**
         * 主键
         */
        @ApiModelProperty(value = "主键")
        private String itemId;

        @ApiModelProperty(value = "节点id")
        private String nodeId;

        @ApiModelProperty(value = "指向节点id")
        private String nextNodeId;

        @ApiModelProperty(value = "名称")
        private String itemName;

        @ApiModelProperty(value = "节点类型")
        private Integer itemType;

        @ApiModelProperty(value = "页面地址")
        private String pageUrl;

        @ApiModelProperty(value = "内容")
        private String itemContent;
        
        @ApiModelProperty(value = "阈值")
        private BigDecimal threshold;
        
        @ApiModelProperty(value = "绑定值")
        private String bindValue;
        
    }

}
